package com.hrc.springbootdemo.ai;

import lombok.AllArgsConstructor;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
@AllArgsConstructor
public class ChatClientFactory {

    private Map<String,ChatClient> chatClientMap;

    public   ChatClient create(ChatClientEnum chatClient) {
        return  chatClientMap.get(chatClient.getChatClientName());
    }
}
